﻿using System.Web.Mvc;

namespace HynuIOTA.Web.Areas.Media
{
    public class MediaAreaRegistration : AreaRegistration 
    {
        public override string AreaName => "Media";

        public override void RegisterArea(AreaRegistrationContext context) 
        {
            context.MapRoute(
               name: "Media_default",
               url: "Media/{controller}/{action}/{id}",
               defaults: new { action = "Index", id = UrlParameter.Optional },
                namespaces:new string[] { "HynuIOTA.Web.Areas.Media.Controllers" }
            ).DataTokens["UseNamespaceFallback"] = false;
        }
    }
}